

function getVertices_Pyramid() {
	return [
		// Front face
		 0.0,  0.5,  0.0,
		-0.5, -0.5,  0.5,
		 0.5, -0.5,  0.5,

		// Right face
		 0.0,  0.5,  0.0,
		 0.5, -0.5,  0.5,
		 0.5, -0.5, -0.5,

		// Back face
		 0.0,  0.5,  0.0,
		 0.5, -0.5, -0.5,
		-0.5, -0.5, -0.5,

		// Left face
		 0.0,  0.5,  0.0,
		-0.5, -0.5, -0.5,
		-0.5, -0.5,  0.5
	];
}

function getVertices_Cube() {
	return [
		// Front face
		-0.5, -0.5,  0.5,
		 0.5, -0.5,  0.5,
		 0.5,  0.5,  0.5,
		-0.5,  0.5,  0.5,

		// Back face
		-0.5, -0.5, -0.5,
		-0.5,  0.5, -0.5,
		 0.5,  0.5, -0.5,
		 0.5, -0.5, -0.5,

		// Top face
		-0.5,  0.5, -0.5,
		-0.5,  0.5,  0.5,
		 0.5,  0.5,  0.5,
		 0.5,  0.5, -0.5,

		// Bottom face
		-0.5, -0.5, -0.5,
		 0.5, -0.5, -0.5,
		 0.5, -0.5,  0.5,
		-0.5, -0.5,  0.5,

		// Right face
		 0.5, -0.5, -0.5,
		 0.5,  0.5, -0.5,
		 0.5,  0.5,  0.5,
		 0.5, -0.5,  0.5,

		// Left face
		-0.5, -0.5, -0.5,
		-0.5, -0.5,  0.5,
		-0.5,  0.5,  0.5,
		-0.5,  0.5, -0.5
	];
}

function generateCubeColors(startingColor) {
	var colors = [
		[startingColor[0]*0.6, startingColor[1]*0.6, startingColor[2]*0.6, 1.0], // Front face
		[startingColor[0]*0.2, startingColor[1]*0.2, startingColor[2]*0.2, 1.0], // Back face
		[startingColor[0]*1.0, startingColor[1]*1.0, startingColor[2]*1.0, 1.0], // Top face
		[startingColor[0]*0.1, startingColor[1]*0.1, startingColor[2]*0.1, 1.0], // Bottom face
		[startingColor[0]*0.8, startingColor[1]*0.8, startingColor[2]*0.8, 1.0], // Right face
		[startingColor[0]*0.4, startingColor[1]*0.4, startingColor[2]*0.4, 1.0]  // Left face
	];

	var unpackedColors = [];
	for (var i in colors) {
		var color = colors[i];
		for (var j=0; j < 4; j++) {
			unpackedColors = unpackedColors.concat(color);
		}
	}
	
	return unpackedColors;
}



